//
//  UITypeColor.swift
//  YOKO
//
//  Created by Zhou Xugang on 12/4/15.
//  Copyright © 2015 15Tec. All rights reserved.
//

import Foundation
import UIKit

private extension UIColor {
    
    convenience init(rgbValue: Int) {
        let red = CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0
        let green = CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0
        let blue = CGFloat((rgbValue & 0x0000FF)) / 255.0
        self.init(red: red, green: green, blue: blue, alpha: 1.0)
    }
}

struct UITypeColor {
    //    static let MonthViewNavigationBackgroundColor = UIColor(red: 225.0/255.0, green: 104.0/255.0, blue: 76.0/255.0, alpha: 1.0)
    static let MonthViewNavigationBackgroundColor = UIColor(red: 34.0/255.0, green: 34.0/255.0, blue: 34.0/255.0, alpha: 1.0)
    
    
    static let Colors = [UIColor(red: 243.0/255.0, green: 208.0/255.0, blue: 33.0/255.0, alpha: 1.0),
                         UIColor(red: 205.0/255.0, green: 52.0/255.0, blue: 47.0/255.0, alpha: 1.0),
                         UIColor(red: 36.0/255.0, green: 107.0/255.0, blue: 124.0/255.0, alpha: 1.0),
                         UIColor(red: 97.0/255.0, green: 38.0/255.0, blue: 80.0/255.0, alpha: 1.0),
                         UIColor(red: 237.0/255.0, green: 107.0/255.0, blue: 63.0/255.0, alpha: 1.0)]
    
    static let typeNames = ["家庭社交", "工作成就", "运动健康", "学习修养", "其他分类"]
    
    static let DetailedDateBackgroundColor = UIColor(red: 239.0/255.0, green: 239.0/255.0, blue: 239.0/255, alpha: 1.0)
    
    static let TimeSelectorBackgroundColor = UIColor(red: 237.0/255.0, green: 238.0/255.0, blue: 239.0/255, alpha: 1.0)
    static let TimeSelectorBackgroundLabelColor = UIColor(red: 142.0/255.0, green: 142.0/255.0, blue: 142.0/255.0, alpha: 1.0)
    static let TimeSelectorAMPMColor = UIColor(red: 0.0/255.0, green: 53.0/255.0, blue: 101.0/255.0, alpha: 1.0)
    
    static let eventViewBackgroundColor = UIColor(red: 249.0/255.0, green: 249.0/255.0, blue: 249.0/255.0, alpha: 1.0)
    
    static let eventViewDefaultColor = UIColor(red: 237.0/255.0, green: 107.0/255.0, blue: 63.0/255.0, alpha: 1.0)
    
    static let eventTimeMonthDaysSupplementViewTextColor = UIColor(red: 237.0/255.0, green: 238.0/255.0, blue: 239.0/255, alpha: 1.0)
    
    static let slideOutViewFontColor = UIColor(red: 102.0/255.0, green: 102.0/255.0, blue: 102.0/255.0, alpha: 1.0)
    
    static let slidOutViewFontName = "HelveticaNeue-Light"
    
    //MARK: - 日历选择表色彩
    static let calendarSelectorViewBackgroundColor = UIColor(red: 34.0/255.0, green: 34.0/255.0, blue: 34.0/255.0, alpha: 1.0) //old api interface
    static let monthSelectorViewBackgroundColor = UIColor(red: 34.0/255.0, green: 34.0/255.0, blue: 34.0/255.0, alpha: 1.0)
    static let monthSelectorButtonNormalForegroundColor = UIColor.whiteColor()
    static let monthSelectorButtonHighlightedForegroundColor = UIColor(rgbValue: 0xe1693f)
    static let monthSelectorButtonHighlightedBackgroundColor = UIColor(rgbValue: 0xebac2b)
}